<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <title>人力资源管理</title>
    <link href="css/personIndex.css" rel="stylesheet"/>
    <link href="css/bootstrap.min.css" rel="stylesheet"/>


</head>
<body ng-app="salaryApp"  ng-controller="NetworkRequestCtro">

<h1 style="margin-left: 20px">人力资源薪酬管理</h1>
<h4 style="color: #337ab7; margin-left: 20px">当前登录/Id:<span id="ID"><%-Id%></span>/<span  id='sysName'><%-name%></span> / <span id = "sysPos"><%-position%></span> / <span><a href='/login'>退出</a><span></h4>
<ol class="mybreadcrumb">
    <!--<li ><a href="#">人力资源档案管理</a></li>-->

    <li id="register"  class="active"><a href="#/addSalary">薪酬登记</a></li>
    <li id='select' ><a href="#/selectSalary">薪酬查询</a></li>
</ol>

<div ng-controller="salaryCtrl">
    <!--模板会渲染到这里-->
    <div ng-view></div>
</div>

<script src="js/jquery-1.11.3.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/angular.min.js"></script>
<script src="js/angular-route.js"></script>
<script src="js/network.js"></script>
<!--<script src="js/controller/personControl.js"></script>-->
<script src="js/controller/salaryControl.js"></script>


<script>
    console.log($('#register'))
    $('#register').click(function (e) {
        console.log(this);

        $('#register').addClass('active')
        $('#select').removeClass('active')
    })
    $('#select').click(function () {
        $('#select').addClass('active')
        $('#register').removeClass('active')
    })

</script>
<script>

    var app = angular.module("salaryApp", ['salary']);
    app.controller("salaryCtrl", function($scope , $rootScope) {
        //获取登记人
        $scope.myRegister = document.getElementById('sysName').myRegister
        //获取登记人的Id
        $scope.Id = document.getElementById('ID').innerHTML
        //获取登记人的职位
        $scope.pos = document.getElementById('sysPos').innerHTML
//        salaryID = ''
        var salaryID  //通過var 创建的变量
//        $scope.salaryID  = ''         //$scope.salaryID 不是通过以上两种方法创建出来的
//        $rootScope.salaryID = 10000000000;
    });
</script>

</body>
</html>